    <nav class="navbar navbar-fixed-top navbar-inverse" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="<?php echo $this->webroot.Configure::read("Config.lang");?>">free-sport-betting.com</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            
            <div class="collapse navbar-collapse navbar-ex1-collapse">
                  <ul class="nav navbar-nav pull-right">
                    <li class="dropdown">
                        <a id="drop2" class="dropdown-toggle" data-toggle="dropdown" role="button" href="#"> <i class="<?php echo AppController::$flags[Configure::read('Config.language')];?>"></i>
                        <b class="caret"></b> </a>
                        <ul class="dropdown-menu" aria-labelledby="drop2" role="menu"  style="padding: 0;">
                            <li role="presentation">
                                <a href='<?php echo $this->webroot;?>Users/lang/it' tabindex="-1" role="menuitem"><i class="famfamfam-flag-it"></i>&nbsp;<?php echo __("Italiano")?></a>
                            </li>
                            <li role="presentation">
                                <a href='<?php echo $this->webroot;?>Users/lang/en' tabindex="-1" role="menuitem"><i class="famfamfam-flag-gb"></i>&nbsp;<?php echo __("Inglese")?></a>
                            </li>
                        </ul>
                    </li>
                </ul>
                  <?php if(!empty($utente)) { ?>
                            <ul class="nav navbar-nav pull-right">
                                    <!-- <span class="label notification-menu">7</span> -->
                                <li class="dropdown">
                                    <a id="drop3" class="dropdown-toggle" data-toggle="dropdown" role="button" href="#"> 
                                        <i class="icon-user"></i>&nbsp;<?php echo !$this->request->is('mobile')?$utente['username']:"" ?>
                                    <b class="caret"></b> </a>
                                    <ul class="dropdown-menu" aria-labelledby="drop3" role="menu">
                                        <?php if($this->request->is('mobile')) { ?>
                                           <li role="presentation" class="notification-header"> <?php echo $utente['username'] ?> </li>
                                        <?php }?>
                                        <li role="presentation" <?php echo $this->here==$this->webroot.'Users/profilo'?"class='active'":""  ?> >
                                            <a href='<?php echo $this->webroot;?>Users/profilo' tabindex="-1" role="menuitem"><?php echo __("Profilo utente");?></a>
                                        </li>
                                        <li class="divider" role="presentation"></li>
                                        <li role="presentation" <?php echo $this->here==$this->webroot.'Users/password'?"class='active'":""  ?>>
                                            <a href='<?php echo $this->webroot;?>Users/password' tabindex="-1" role="menuitem"><?php echo __("Cambia password")?>&nbsp;&nbsp;&nbsp;<i class='icon-exchange'></i></a>
                                        </li>
                                        <?php if ($this->Permission->check("controllers/Parametro/index")) { ?>
                                            <li role="presentation">
                                                <a href='<?php echo $this->webroot;?>Parametro/index' tabindex="-1" role="menuitem"><?php echo __("Parametri")?>&nbsp;&nbsp;&nbsp;<i class='icon-cogs'></i></a>
                                            </li>
                                        <?php } ?>
                                        <?php if ($this->Permission->check("controllers/Info/index")) { ?>
                                            <li role="presentation">
                                                <a href='<?php echo $this->webroot;?>Info/index' tabindex="-1" role="menuitem"><?php echo __("Info")?></a>
                                            </li>
                                        <?php } ?>
                                        <li class="divider" role="presentation"></li>
                                        <?php if ($this->Permission->check("controllers/UploadXml/index")) { ?>
                                            <li role="presentation">
                                                <a href='<?php echo $this->webroot;?>UploadXml/index' tabindex="-1" role="menuitem"><?php echo __("Xml")?></a>
                                            </li>
                                        <?php } ?>
                                        <?php if ($this->Permission->check("controllers/Feed/index")) { ?>
                                            <li role="presentation">
                                                <a href='<?php echo $this->webroot;?>Feed/index' tabindex="-1" role="menuitem"><?php echo __("Feed")?></a>
                                            </li>
                                        <?php } ?>
                                        <?php if ($this->Permission->check("controllers/Banner/index")) { ?>
                                            <li role="presentation">
                                                <a href='<?php echo $this->webroot;?>Banner/index' tabindex="-1" role="menuitem"><?php echo __("Banner")?></a>
                                            </li>
                                        <?php } ?>
                                        <?php if ($this->Permission->check("controllers/Post/index")) { ?>
                                            <li role="presentation">
                                                <a href='<?php echo $this->webroot;?>Post/index' tabindex="-1" role="menuitem"><?php echo __("Post")?></a>
                                            </li>
                                        <?php } ?>
                                        <li class="divider" role="presentation"></li>
                                        <li role="presentation">
                                            <a href='<?php echo $this->webroot;?>Users/logout' tabindex="-1" role="menuitem"><?php echo __("Logout")?>&nbsp;&nbsp;&nbsp;<i class='icon-signout'></i></a>
                                        </li>
                                    </ul>
                                </li>
                            </ul>
                    <?php }else{ ?>
                        <ul class="nav navbar-nav pull-right">
                                <li>
                                  <a href="<?php echo $this->webroot;?>Users/login">
                                    <i style="color:red" class="glyphicon glyphicon-lock"></i> <?php echo __("Area riservata"); ?>
                                  </a>
                                </li>
                          </ul>                     
                    <?php } ?>

                    <ul class="nav navbar-nav pull-right">
                        <li>
		 				  	<a href='<?php echo $this->webroot.Configure::read("Config.lang")."/partner"; ?>' ><i style="color:white" class="fa fa-users fa-fw"></i> <?php echo __("Partner"); ?></a>
                        </li>
                   </ul>                     

                    <ul class="nav navbar-nav pull-right">
						<li class="dropdown">
					    	<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i style="color:white" class="fa fa-futbol-o"></i> <?php echo __("Risultati Calcio"); ?><span class="caret"></span></a>
					        <ul class="dropdown-menu" role="menu">
		                        <li>
				 				  	<a href='<?php echo $this->webroot.Configure::read("Config.lang")."/live"; ?>' ><i style="color:#FFDB49" class="fa fa-flash fa-fw"></i> <?php echo __("Live"); ?></a>
		                        </li>
		                        <li>
				 				  	<a href='<?php echo $this->webroot.Configure::read("Config.lang")."/livescore"; ?>' ><i style="color:#FFDB49" class="fa fa-flash fa-fw"></i> <?php echo __("Live Score"); ?></a>
		                        </li>
					            <li class="divider"></li>
		                        <li>
				 				  	<a href='<?php echo $this->webroot.Configure::read("Config.lang")."/matches"; ?>' ><i style="color:#2A9655" class="fa fa-clock-o fa-fw"></i> <?php echo __("Storico calcio"); ?></a>
		                        </li>
					        </ul>
						</li>
                   </ul>

                    <ul class="nav navbar-nav pull-right">
                        <li>
		 				  	<a href='<?php echo $this->webroot.Configure::read("Config.lang")."/odds"; ?>' ><i style="color:white" class="glyphicon glyphicon-sound-5-1"></i> <?php echo __("Quote Calcio"); ?></a>
                        </li>
                   </ul>                     

                    <ul class="nav navbar-nav pull-right">
                        <li>
		 				  	<a href='<?php echo $this->webroot.Configure::read("Config.lang"); ?>' ><i style="color:white" class="fa fa-book fa-fw"></i> <?php echo __("Bookmaker"); ?></a>
                        </li>
                   </ul>                     

            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container -->
    </nav>

